<? include_once('transl.php'); $splitted_transl=split_transl(__FILE__);//загрузка перевода ?>
<? include_once('artikul.php'); //загрузка артикулов?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript" src="dynaddline.js">//скрипт для динамического добавления строчек</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><? echo (transl_takestring($splitted_transl, "Расход энергии",$langchoosed));?></title>
</head>

<body bgcolor="#CCCCCC">
<script language="javascript" src="matematika.js"></script>
<span id="shapka">
<table>
	<tr align="center">
	    <td colspan="5"><h1><? echo (transl_takestring($splitted_transl, "Информация о расходах",$langchoosed));?></h1></td>
    </tr>
    <tr>
    	<td><? echo (transl_takestring($splitted_transl, "Предприятие:",$langchoosed));?></td>
        <td><input name="fab_nom_inputfield" type="text" value="136" size="8" readonly="readonly" style="background-color:#66FFCC" /></td>
        <td><input name="fab_name_inputfield" type="text" value="KNAUF GIPS KOLPINO" size="30" readonly="readonly" style="background-color:#66FFCC"	/></td>
        <td><? echo (transl_takestring($splitted_transl, "Дата:",$langchoosed));?></td>	
        <td><input name="date_inputfield" type="text" value="3.12.2004" size="12" readonly="readonly" style="background-color:#66FFCC" style="background-color:#66FFCC/"></td>
    </tr>
    <tr>
    	<td><? echo (transl_takestring($splitted_transl, "Ресурсы:",$langchoosed));?></td>
        <td><input name="res_nom_inputfield" type="text" value="136" size="8" readonly="readonly" style="background-color:#66FFCC"/></td>
      <td><input name="res_name_inputfield" type="text" value="BS KOLPINO" size="30" readonly="readonly" style="background-color:#66FFCC"/></td>
        <td><? echo (transl_takestring($splitted_transl, "Смена:",$langchoosed));?></td>
        <td><input name="smena_inputfield" type="text" value="2" size="12" readonly="readonly" style="background-color:#66FFCC"/></td>
    </tr>
    <tr>
    	<td><? echo (transl_takestring($splitted_transl, "Класс:",$langchoosed));?></td>
        <td><input name="klass" type="text" value="VA" size="" readonly="readonly" style="background-color:#66FFCC"/></td>
        <td><select name="klass_selectfield">
        		<option value="1">Verbrausch Allgemein</option>
	            <option value="2">Not Defined</option>
    		</select>
        </td>
    </tr>
                  
</table>
</span>
<br />
<span id="table1">
<form id="rashodenergii">
<table border="1">
	<tr>
    	<td valign="top">
    	<table>
        	<tr>
        		<td colspan="3" align="center"><b><? echo (transl_takestring($splitted_transl, "Мазут:",$langchoosed));?></b></td>
            </tr>
            <tr>
            	<td><? echo (transl_takestring($splitted_transl, "Теплота сгорания:",$langchoosed));?></td>
                <td><input type="text" name="teplota_sgor_inputfield" /></td>
                <td><input type="text" name="tepl_sg_fizvel" value="kWh/kg" readonly="readonly" size="4" style="background-color:#66FFCC"/></td>
            </tr>
            <tr>
            	<td><? echo (transl_takestring($splitted_transl, "Плотность:",$langchoosed));?></td>
                <td><input type="text" name="plotnost_inputfield" /></td>
                <td><input type="text" name="plotnost_fizvel" value="kg/l" readonly="readonly" size="4" style="background-color:#66FFCC"/></td>
            </tr>
            <tr>
            	<td><? echo (transl_takestring($splitted_transl, "Расход по счетчику:",$langchoosed));?></td>
                <td><input type="text" name="rashodschetchik_inputfield" /></td>
                <td><input type="text" name="rashodschetchik_fizvel" readonly="readonly" value="l" size="4" style="background-color:#66FFCC"/></td>
            </tr>
           	<tr>
            	<td><? echo (transl_takestring($splitted_transl, "Температура на счетчике:",$langchoosed));?></td>
                <td><input type="text" name="temperatura_na_sch_inputfield" /></td>
                <td><input type="text" name="temperatura_na_sch_fizvel" readonly="readonly" value="kWh/kg" size="4" style="background-color:#66FFCC"/></td>
            </tr>
                       	<tr>
            	<td><? echo (transl_takestring($splitted_transl, "Нормальных кубометр.:",$langchoosed));?></td>
                <td><input type="text" name="normalkubom_inputfield" /></td>
                <td><input type="text" name="normalkubom_fizvel" readonly="readonly" value="Nm^3" size="4" style="background-color:#66FFCC"	/></td>
            </tr>
           	<tr>
            	<td><? echo (transl_takestring($splitted_transl, "Расчитанное количество:",$langchoosed));?></td>
                <td><input type="text" name="raschit_kolvo_inputfield" /></td>
                <td><input type="text" name="raschit_kolvo_fizvel" readonly="readonly" value="kWh Hu" size="4" style="background-color:#66FFCC"/></td>
            </tr>
         </table>
         </td>
         <td valign="top">
	         <table>
	        	<tr>
    	    		<td colspan="3" align="center"><b><? echo (transl_takestring($splitted_transl, "Природный газ:",$langchoosed));?></b></td>
        	    </tr>
				<tr>
            		<td><? echo (transl_takestring($splitted_transl, "Теплота сгорания н.:",$langchoosed));?></td>
	                <td><input type="text" name="tepl_sgor_n_inputfield" /></td>
    	            <td><input type="text" name="tepl_sgor_n_fizvel" readonly="readonly" value="kWh/Nm^3" size="6"  style="background-color:#66FFCC"/></td>
	            </tr>
				<tr>
            		<td><? echo (transl_takestring($splitted_transl, "Расход по счетчику:",$langchoosed));?></td>
	                <td><input type="text" name="rashod_po_sch_inputfield" /></td>
    	            <td><input type="text" name="rashod_po_sch_fizvel" readonly="readonly" value="Bm^3" size="4" style="background-color:#66FFCC"/></td>
	            </tr>                
				<tr>
            		<td><? echo (transl_takestring($splitted_transl, "Температура на счетчике:",$langchoosed));?></td>
	                <td><input type="text" name="temperatura_na_sch1_inputfield" /></td>
    	            <td><input type="text" name="temperatura_na_sch1_fizvel" readonly="readonly" value="(0)C" size="4" style="background-color:#66FFCC"/></td>
	            </tr>
				<tr>
            		<td><? echo (transl_takestring($splitted_transl, "Давление на счетчике:",$langchoosed));?></td>
	                <td><input type="text" name="davl_na_sch_inputfield" /></td>
    	            <td><input type="text" name="davl_na_sch_fizvel" readonly="readonly" value="mbar" size="4" style="background-color:#66FFCC"/></td>
	            </tr>                
				<tr>
            		<td><? echo (transl_takestring($splitted_transl, "Давление воздуха:",$langchoosed));?></td>
	                <td><input type="text" name="davlvozd_inputfield" /></td>	
    	            <td><input type="text" name="davlvozd_fizvel" value="mbar" readonly="readonly"  style="background-color:#66FFCC" size="4"/></td>
	            </tr>
				<tr>
            		<td><? echo (transl_takestring($splitted_transl, "Нормальных кубометр.:",$langchoosed));?></td>
	                <td><input type="text" name="normkubom_inputfield" /></td>
    	            <td><input type="text" name="normkubom_fizvel" value="Nm^3" size="4" readonly="readonly"  style="background-color:#66FFCC"/></td>
	            </tr>                
				<tr>
            		<td><? echo (transl_takestring($splitted_transl, "Расчитанное количество:",$langchoosed));?></td>
	                <td><input type="text" name="raschkol_inputfield" /></td>
    	            <td><input type="text" name="raschkol_fizvel" value="kWh Hu" size="4"  style="background-color:#66FFCC" readonly="readonly"	/></td>
	            </tr>                
    	     </table>
         </td>
     </tr>
</table>
</form>
</span>
<span id="table">
<form id="inforash">
<table border="1">
<tr>
    	<td><? echo (transl_takestring($splitted_transl, "№ арт.",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Описание артикула",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Количество:",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Величина:",$langchoosed));?></td>
        <td><a href="#" onclick="return addline();"><? echo (transl_takestring($splitted_transl, "Добавить",$langchoosed));?></a></td>
    </tr>
    <tr id="newline" nomer="[0]">
    	<td><select name="art_nom_selectfield[0]" onchange='redraw_artdescr()'>
    			<? 	
					$i=0;
					$ar=getartikul();
					while ($element=each($ar))
					{
						echo('<option value="'.$i.'">'.$element[1]->nom.'</option>');
					}
				?>
        	</select>
        </td>
        <td><input name="art_desc_inputfield[0]" type="text" value="" readonly="readonly" style="background-color:#66FFCC"/></td>
        <td><input name="massa_inputfield[0]" type="text" value="" size="5"/></td>
        <td><input name="velichina_inputfield[0]" type="text" value="" size="6" style="background-color:#66FFCC";/></td>
		<td valign="top"><a href="#" onclick="return rmline(0);"/><? echo (transl_takestring($splitted_transl, "Удалить",$langchoosed));?></td>
    </tr>
</table>
</form>
</span>
<br />
<p>&nbsp;</p>
</body>
</html>
